var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("#b（很好，把医务室的门锁上吧。）#k", 57, 1530509, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("#b（然后再把屋顶的电源切断。）#k", 57, 1530509, true, true)
            } else {
                if (status === a++) {
                    qm.gainExp(Math.pow(qm.getLevel(), 3));
                    qm.forceCompleteQuest(32839);
                    qm.dispose()
                }
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.warp(330002323, 0);
            qm.dispose()
        }
    }
};